#include "WordsLine.h"


WordsLine::WordsLine(int t, int b, int l, int r, int s, int nr, string d)
{
  top = t;
  left = l;
  bottom = b;
  right = r;
  shear = s;
  lineNumber = nr;
  documentName = d;
}

WordsLine::~WordsLine()
{
  words.clear();
}

void WordsLine::addWord(Word w)
{
  words.push_back(w);
}

int WordsLine::width()
{
    return right - left;
}
    
int WordsLine::height()
{
  return bottom - top + 1;
}

